import os

# 基础路径配置
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
STATIC_FOLDER = 'static'
UPLOAD_FOLDER = os.path.join(STATIC_FOLDER, 'uploads/avatars')
IMAGES_FOLDER = os.path.join(STATIC_FOLDER, 'images')

# 文件路径配置
DEFAULT_AVATAR = 'images/default_head.png'
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'webp', 'bmp'}

# 数据库配置
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@localhost/snipe'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = 'your-secret-key'  # 建议使用随机生成的密钥

# 邮件配置
MAIL_SERVER = 'smtp.qq.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = '207789324@qq.com'
MAIL_PASSWORD = 'lngrozmhjtgebjda'

# 积分规则配置
POINTS_PER_BUTT = 10  # 每个烟蒂的积分 